package c.e.a.b.f.b;

import android.content.SharedPreferences.Editor;
import b.i.b.f;

/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
public final class j4 {
    public final String a;
    public boolean b;
    public String c;
    public final /* synthetic */ d4 d;

    public j4(d4 d4Var, String str) {
        this.d = d4Var;
        f.N(str);
        this.a = str;
    }

    public final String a() {
        if (!this.b) {
            this.b = true;
            this.c = this.d.w().getString(this.a, null);
        }
        return this.c;
    }

    public final void b(String str) {
        Editor edit = this.d.w().edit();
        edit.putString(this.a, str);
        edit.apply();
        this.c = str;
    }
}
